#pragma once

#include "framework.h"

class csprite {
public:
	csprite();
	~csprite();

	void set(IDirect3DDevice9* pDevice, const char* file);
	void setPosition(float x = 0, float y = 0, float z = 0);
	void draw(ID3DXSprite* pSprite);

private:
	IDirect3DTexture9* m_pRectTexture;// ͼƬ
	D3DXVECTOR3 m_position;// λ��
	RECT m_rect;
	float m_angle;// ��ת�Ƕ�
};

